#!/usr/bin/env python3

import tornado.ioloop
import tornado.web

class ReceiveFileHandler(tornado.web.RequestHandler):
    def post(self):
        print("receive file upload post method callback")
        self.write("OK")


def make_app():
    return tornado.web.Application([(r"/upload", ReceiveFileHandler)])


if __name__ == "__main__":
    app = make_app()
    app.listen(8080)
    tornado.ioloop.IOLoop.current().start()
